/**
 * 
 */
package com.sj.szxy.genetic.algorithm.courseschedule;

/**
 * @author Yi Ping
 * @date 2018年4月3日 下午9:38:37 
 * @since 1.0.0
 *
 */
public class Module {
	
	private final int moduleId;
	private final String moduleCode;
	private final String module;
	private final int professorIds[];
	/**
	 * @param moduleId
	 * @param moduleCode
	 * @param module
	 * @param professorIds
	 */
	public Module(int moduleId, String moduleCode, String module, int[] professorIds) {
		super();
		this.moduleId = moduleId;
		this.moduleCode = moduleCode;
		this.module = module;
		this.professorIds = professorIds;
	}
	
	
	public int getModuleId() {
		return moduleId;
	}
	public String getModuleCode() {
		return moduleCode;
	}
	public String getModule() {
		return module;
	}
	public int[] getProfessorIds() {
		return professorIds;
	}


	public int getRandomProfessorId() {
		return professorIds[(int) (professorIds.length*Math.random())];
	}
	
	
}
